﻿using System;

namespace CryptoFiles.Common
{
    public class UserRegistrationException : Exception
    {
        public UserRegistrationException(string message, ErrorType errorType)
            :base(message)
        {
            Error = errorType;
        }


        public ErrorType Error { get; set; }

    }

    public enum ErrorType {EmptyLogin, EmptyPasswd, PasswdMismatch, LoginExists }

}
